package cn.kimming.wms.dao.impl;

import org.springframework.stereotype.Repository;

import cn.kimming.wms.dao.IProductStockDAO;
import cn.kimming.wms.domain.ProductStock;

@Repository("productStockDAO")
public class ProductStockDAOImpl extends GenericDAOImpl<ProductStock> implements IProductStockDAO{

	@Override
	public ProductStock getByDepotIdAndProductId(Long depotId, Long productId) {
		return queryForObject("obj.product.id = ? AND obj.depot.id = ?", productId, depotId);
	}
	
}
